From: Marek Vasut Date: Thu, 13 Jun 2019 23:57:30 +0000 (+0200) Subject: rcar_gen3: drivers: qos: M3N: Drop extra level of nesting X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22/%22https:/collectd.org/%22?a=commitdiff_plain;h=16726bcd5fdc59fb152d86383fdb2877a4282c83;p=project%2Fbcm63xx%2Fatf.git rcar_gen3: drivers: qos: M3N: Drop extra level of nesting The extra level of nesting is not necessary, drop it. No functional change. Signed-off-by: Marek Vasut Change-Id: I6d268eae8df5794511d5211e5a59a36291adab3e --- diff --git a/drivers/staging/renesas/rcar/qos/M3N/qos_init_m3n_v10.c b/drivers/staging/renesas/rcar/qos/M3N/qos_init_m3n_v10.c index cd12a958..20e6b7c3 100644 --- a/drivers/staging/renesas/rcar/qos/M3N/qos_init_m3n_v10.c +++ b/drivers/staging/renesas/rcar/qos/M3N/qos_init_m3n_v10.c @@ -170,30 +170,28 @@ void qos_init_m3n_v10(void) SL_INIT_SSLOTCLK_M3N); io_write_32(QOSCTRL_REF_ARS, REF_ARS_ARBSTOPCYCLE_M3N); - { - uint32_t i; - - for (i = 0U; i < ARRAY_SIZE(mstat_fix); i++) { - io_write_64(QOSBW_FIX_QOS_BANK0 + i * 8, mstat_fix[i]); - io_write_64(QOSBW_FIX_QOS_BANK1 + i * 8, mstat_fix[i]); - } - for (i = 0U; i < ARRAY_SIZE(mstat_be); i++) { - io_write_64(QOSBW_BE_QOS_BANK0 + i * 8, mstat_be[i]); - io_write_64(QOSBW_BE_QOS_BANK1 + i * 8, mstat_be[i]); - } + uint32_t i; + + for (i = 0U; i < ARRAY_SIZE(mstat_fix); i++) { + io_write_64(QOSBW_FIX_QOS_BANK0 + i * 8, mstat_fix[i]); + io_write_64(QOSBW_FIX_QOS_BANK1 + i * 8, mstat_fix[i]); + } + for (i = 0U; i < ARRAY_SIZE(mstat_be); i++) { + io_write_64(QOSBW_BE_QOS_BANK0 + i * 8, mstat_be[i]); + io_write_64(QOSBW_BE_QOS_BANK1 + i * 8, mstat_be[i]); + } #if RCAR_REWT_TRAINING != RCAR_REWT_TRAINING_DISABLE - for (i = 0U; i < ARRAY_SIZE(qoswt_fix); i++) { - io_write_64(QOSWT_FIX_WTQOS_BANK0 + i * 8, - qoswt_fix[i]); - io_write_64(QOSWT_FIX_WTQOS_BANK1 + i * 8, - qoswt_fix[i]); - } - for (i = 0U; i < ARRAY_SIZE(qoswt_be); i++) { - io_write_64(QOSWT_BE_WTQOS_BANK0 + i * 8, qoswt_be[i]); - io_write_64(QOSWT_BE_WTQOS_BANK1 + i * 8, qoswt_be[i]); - } -#endif /* RCAR_REWT_TRAINING != RCAR_REWT_TRAINING_DISABLE */ + for (i = 0U; i < ARRAY_SIZE(qoswt_fix); i++) { + io_write_64(QOSWT_FIX_WTQOS_BANK0 + i * 8, + qoswt_fix[i]); + io_write_64(QOSWT_FIX_WTQOS_BANK1 + i * 8, + qoswt_fix[i]); + } + for (i = 0U; i < ARRAY_SIZE(qoswt_be); i++) { + io_write_64(QOSWT_BE_WTQOS_BANK0 + i * 8, qoswt_be[i]); + io_write_64(QOSWT_BE_WTQOS_BANK1 + i * 8, qoswt_be[i]); } +#endif /* RCAR_REWT_TRAINING != RCAR_REWT_TRAINING_DISABLE */ /* RT bus Leaf setting */ io_write_32(RT_ACT0, 0x00000000U);